import Layout from '@/layout'
import EmptyLayout from '@/layout/empty'

export default {
    path: '/appManage',
    component: Layout,
    redirect: '/appManage/list',
    name: 'appManage',
    meta: {
        title: 'App管理',
        icon: 'app-nav-icon'
    },
    children: [
        {
            path: 'banner',
            name: 'bannerManage',
            component: EmptyLayout,
            redirect: '/banner',
            meta: {
                title: 'Banner管理'
                // auth: ['businessAuth.browse']
            },
            children: [
                {
                    path: '',
                    component: () => import(/* webpackChunkName: 'app_manage' */ '@/views/app_manage/banner/index'),
                    meta: {
                        title: 'Banner管理',
                        sidebar: false,
                        breadcrumb: false
                    }
                },
                {
                    path: 'add',
                    name: 'bannerAdd',
                    component: () => import(/* webpackChunkName: 'app_manage' */ '@/views/app_manage/banner/detail'),
                    meta: {
                        title: '新增Banner',
                        sidebar: false,
                        activeMenu: '/app/banner'
                    }
                },
                {
                    path: 'edit/:id',
                    name: 'bannerEdit',
                    component: () => import(/* webpackChunkName: 'app_manage' */ '@/views/app_manage/banner/detail'),
                    meta: {
                        title: '编辑Banner',
                        sidebar: false,
                        activeMenu: '/app/banner'
                    }
                }
            ]
        }
    ]
}
